import redis

r = redis.Redis(host='r-2zea3c0ff18d2e94.redis.rds.aliyuncs.com', port=6379, db=0, password='b3bPVU8W',
                decode_responses=True)

flag_tencent = 'vcg_editor_tencent'
flag_web = 'vcg_editor_web'

r.set(flag_tencent, 1)
r.set(flag_web, 1)

flag_tencent_state = int(r.get(flag_tencent))
flag_web_state = int(r.get(flag_web))

print('flag_tencent_state: ', flag_tencent_state)
print('flag_web_state：', flag_web_state)

print("vcgEditorial_last_last_id: ", r.get('vcgEditorial_last_last_id'))